all: project

libdrivers:
	@cd Drivers && $(MAKE)

liblfs:
	@cd Middlewares/littlefs && $(MAKE)

librtt:
	@cd Middlewares/rt-thread && $(MAKE)
	
project: libdrivers liblfs librtt
	@cd bsp && $(MAKE)

clean:
	@cd bsp && $(MAKE) clean
	@cd Drivers && $(MAKE) clean
	@cd Middlewares/littlefs && $(MAKE) clean
	@cd Middlewares/rt-thread && $(MAKE) clean
	